﻿using System;
using System.Diagnostics;
using UnityEngine.UI;

namespace Sizebox.CharacterEditor
{
	// Token: 0x0200023D RID: 573
	[Serializable]
	public class ViewConfig
	{
		// Token: 0x14000002 RID: 2
		// (add) Token: 0x06000C44 RID: 3140 RVA: 0x00064518 File Offset: 0x00062718
		// (remove) Token: 0x06000C45 RID: 3141 RVA: 0x00064550 File Offset: 0x00062750
		[DebuggerBrowsable(DebuggerBrowsableState.Never)]
		public event ViewConfig.ViewConfigEvent OnViewOpen;

		// Token: 0x1700016E RID: 366
		// (get) Token: 0x06000C46 RID: 3142 RVA: 0x00064586 File Offset: 0x00062786
		public string name
		{
			get
			{
				if (this.view)
				{
					return this.view.name;
				}
				return "SubView";
			}
		}

		// Token: 0x06000C47 RID: 3143 RVA: 0x000645A9 File Offset: 0x000627A9
		public void _OpenEvent()
		{
			if (this.OnViewOpen != null)
			{
				this.OnViewOpen();
			}
		}

		// Token: 0x04001174 RID: 4468
		public BaseView view;

		// Token: 0x04001175 RID: 4469
		public Selectable activator;

		// Token: 0x04001176 RID: 4470
		public bool activatorIsToggle;

		// Token: 0x04001177 RID: 4471
		public bool disableInteractionOnClick;

		// Token: 0x0200023E RID: 574
		// (Invoke) Token: 0x06000C49 RID: 3145
		public delegate void ViewConfigEvent();
	}
}
